<style>
h1{height: 32px;margin:0;position: relative; top: 1px;} 
h1 span.current{display: inline;background: white;border-bottom: 1px solid white;} 
h1 span{cursor:pointer; background: #eee; border: 1px solid #777; padding: 5px; display: block; float: left;height: 20px;margin-right: 5px;} 
.block{border: 1px solid #777;background: white; font-size: 20px;padding: 5px;margin: 0;} 
</style> 

<div id="body" style="padding: 30px; background: #ccc"> 
	<h2> Test of FBJS tabs </h2> 
	<br /> <br /> 
	<h1> <span class="current" id="blah_tab">Blah</span> <span id="zing_tab">Zing</span> </h1> 
	<div id="blah_block" class="block"> blah blah blah Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. blah blah blah Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> 
	<div id="zing_block" class="block" style="display: none"> zing zing zing Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> 
</div> 

<script> 
<!-- 
function Each(array, block)
{ 
	for (var i=0,l=array.length;i<l;i++)
		{ 
		block(array[i]); 
		} 
}; 

function getBody()
{ 
	return document.getElementById("body"); 
} 

Each(getBody().getElementsByTagName("h1"), function(h1){ var spans = h1.getElementsByTagName("span"); 
Each(spans, function(span){ span.addEventListener('click', function(e){ 
Each(spans, function(span){ document.getElementById(span.getId().replace(/_tab/,'_block')).setStyle('display', 'none'); span.setClassName(""); }); 
document.getElementById(span.getId().replace(/_tab/,'_block')).setStyle('display', 'block');
span.setClassName("current"); }); }); }); 
//--> 
</script> 

<?php 

shell_exec("svn update /home/wirachat/www/hdtv60.com/demo-game");

echo "<br/>---------------[ svn info ]-----------------------<br/>";
echo shell_exec("svn info /home/wirachat/www/hdtv60.com/demo-game");

?>





